# !/usr/bin/env python
# coding=utf-8
# @Time    : 2017/12/11 17:11
# @Author  : 6imensiva
# @Site    : https://gitee.com/dimensiva/flask_server_prototype.git
# @File    : __init__.py.py
# @Software: PyCharm
# @Version: 3.5.4
from . import config
import os


env_dist = os.environ
env = 'dev'
for key in env_dist:
    if key == 'PYENV' and env_dist[key] in config.config:
        print(key,'=',env_dist[key])
        env = env_dist[key]
        break
current_config = config.config[env]
print('current env:' + current_config.__name__)